using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ThreadExercise.methods
{
    internal class DeadLock
    {
        private static readonly object _lock = new object();
        public static void DeadLockTest()
        {
            lock (_lock)
            {
                Console.WriteLine("循环中。。。");

            }
        }
    }
}
